package com.chuanjiabao.wisdom.util.dialog;

import android.content.Context;
import android.databinding.DataBindingUtil;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.WindowManager;

import com.chuanjiabao.wisdom.R;
import com.chuanjiabao.wisdom.databinding.DialogAddFamilyOkSecondBinding;

/**
 * Created by 86178 on 2019/9/7.
 * author mogen
 * 用心，成就一切。
 */

public class AddFamilyOkSeondDialog extends HomeBaseDialog {

    Context context;
    DialogAddFamilyOkSecondBinding binding;

    public AddFamilyOkSeondDialog(Context context) {
        super(context);
        this.context = context;
        binding = DataBindingUtil.inflate(LayoutInflater.from(context), R.layout.dialog_add_family_ok_second, null, false);
        binding.setDialog(this);
        setContentView(binding.getRoot());
        WindowManager.LayoutParams layoutParams = getWindow().getAttributes();
        layoutParams.width = WindowManager.LayoutParams.WRAP_CONTENT;
        layoutParams.height = WindowManager.LayoutParams.WRAP_CONTENT;
        getWindow().setAttributes(layoutParams);
        //弹窗弹出在底部，默认中部
        getWindow().setGravity(Gravity.CENTER);
    }


}


